package java68_5;

public class JavaAvg {
    public static void main(String[] args) {
        Student sr[]=new Student[10];
        for(int i=0;i<sr.length;i++){
            sr[i]=new Student();
            sr[i].java= (float) (Math.random()*100);
        }
        Teacher th=new Teacher();
        th.name="老刘";
        float f=th.calcJavaAvg(sr);
        System.out.println("10名同学的java平均分是:"+f);
    }
}
